package java01.ui;

import java01.bll.Shape;
import java01.bll.ShapeOperation;
import java01.bll.Square;

class MySquare extends Shape {
    @Override
    public double getArea() {
        return 0;
    }

    @Override
    public double getPerimeter() {
        return 0;
    }
    //。。。。
}


public class Test {
    public static void main(String[] args) {
        // 要求正方形的面积和周长，必须通过图形系统对外的一致窗口实现
        // 必须通过ShapeOperation.areaOperation()求面积
        // 必须通过ShapeOperation.pemimeterOperation()求周长

//        MySquare obj = new MySquare();
        Square square = new Square(5);
        square.setOffset(10);
        double area = ShapeOperation.areaOperation(square);
        double perimeter = ShapeOperation.pemimeterOperation(square);

    }
}
